<?php
namespace app\common\model;

use think\Model;

class SscUsername extends Model
{
    protected function initialize()
    {
        parent::initialize();
    }
    /**
     * 注册查询
     * @param unknown $where
     * @param string $order
     */
    public function Look($where,$order)
    {
        return SscUsername::name('username')->where($where)->order($order)->paginate(10,false,['query'=>request()->param()]);
    }
    /**
     * 修改
     * @param unknown $where
     * @param string $order
     */
    public function Xiugai($where,$setzhiduan)
    {
        return SscUsername::name('username')->where($where)->update($setzhiduan);

    }
    /**
     * 删除
     * @param unknown $where
     * @param string $order
     */
    public function Shan($where)
    {
        return SscUsername::name('username')->where($where)->delete();

    }
    /**
     * 添加
     * @param unknown $where
     * @param string $order
     */
    public function Jiayixia($MYSQL_ZIDUAN)
    {
        return SscUsername::name('username')->insert($MYSQL_ZIDUAN);

    }
}